package router

import (
	"github.com/gin-gonic/gin"
	"onerk4/yk/api/handler"
)

func LoadRouter(r *gin.Engine) {
	r.POST("/login", handler.UserLogin)
	r.POST("/addCourse", handler.AddCourse)
	r.GET("/courseList", handler.CourseList)
	r.GET("/courseInfo", handler.CourseInfo)
	r.POST("/updateCourse", handler.UpdateCourse)
	r.POST("/addCoursePanic", handler.AddCoursePanic)
	r.POST("/addOrder", handler.AddOrder)
}
